import Axios, { downLoadFile } from '@/utils/request';
import { PrivatePlacementDTO, PrivatePlacementRepVO } from '../vo/report-manage';

export default class API {
    /**
     * 获取私募基金报表
     * @source
     */
    static getPrivatePlacementList(data: PrivatePlacementDTO): Promise<PrivatePlacementRepVO> {
        return Axios.post('/ptFundReport/query', data)
    }

    /**
     * 导出私募基金报表
     */
    static exportPrivatePlacementList(data: any) {
        downLoadFile({
            url: '/ptFundReport/export',
            method: 'post',
            data,
            loadingMsg: '正在准备导出，请稍后··· ···',
        });
    }

    /**
     * 获取私募基金下拉
     */
    static getPrivatePlacementFund(): Promise<any> {
        return Axios.post('/ptFundReport/dictionary', { codeOrName: '' })
    }
}
